// 路由懒加载
import Loadable from "react-loadable";
import Loading from "./Loading";

export default function LoadableCom(component, option = {}) {
  return Loadable({
    loader: component,
    loading: Loading,
    delay: 200,
    timeout: 1000,
    ...option,
  });
}
